<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition>
  
  <!-- MODAL -->
  <c:if test="#{empty modal or modal eq 'true'}">
  
  	  <c:if test="#{empty bodyClass}">
      	 <c:set var="bodyClass" value="modal-body"/>
      </c:if>
  
	  <div class="#{bodyClass}">
	  
	  	<ui:insert></ui:insert>
	  
	  </div>
	  
  </c:if>
  
  <!-- NÃO MODAL -->
  <c:if test="#{modal eq 'false'}">
  
  	  <c:if test="#{empty bodyClass}">
      	 <c:set var="bodyClass" value="panel-body"/>
      </c:if>
  
	  <div class="#{bodyClass}">
	  
	  	<ui:insert></ui:insert>
	  
	  </div>
	  
  </c:if>
  
  <!-- limpar -->
  <c:set var="bodyClass" value=""/>
  
</ui:composition>
   
</html>